A* algorithm TypeError: cannot unpack non-iterable int object

welcome to shbcf.ru